package com.app.buss.mvp.presenter;

import com.app.buss.bean.ChannalBean;
import com.app.buss.bean.LlineBean;
import com.app.buss.bean.LoginBean;
import com.app.buss.bean.NewsBean;

import io.reactivex.Observable;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface ApiStores {

    @GET("client/vestSign.do")
    Observable<ChannalBean> getConfig(@Query("vestCode") String vestCode,@Query("version")String version,
                                      @Query("deviceId")String deviceId,
                                      @Query("timestamp")String timestamp,@Query("channelCode")String channelCode);


    @GET("user/google/doLogin2.do" )
    Call<LoginBean> login(
            @Query("id") String id,
            @Query("name") String name,
            @Query("email") String email,
            @Query("type") int type,
            @Query("sign") String sign
    );

    @GET("https://raw.githubusercontent.com/theroyakash/newsapis/main/us_news.json")
    Observable<NewsBean> getNews();

    @GET("https://api.huobi.br.com/market/history/kline?period=1day&size=10")
    Observable<LlineBean> getKline(@Query("symbol") String name);

}
